package com.zqg8512.netty.spring;

import com.zqg8512.netty.ws.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author zengqianggang
 * @Description //TODO
 * Author VPN
 * @Date 2019/9/30 15:03
 * @Version 1.0
 **/

@SpringBootApplication
// @ComponentScan(value = {"com.zqg8512.netty.spring"})
public class Application {
    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(Application.class, args);

        // netty  websocket
        // 启动 NettyServer 懒的单独启动了
        new NettyServer().start();
    }
}
